package com.hang.mongoEntity;

import lombok.Data;
import lombok.ToString;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.List;

@Document("FileUrl")
@Data
@ToString
public class FileUrlEntity {
    @Indexed(unique = true)
    @Field("_id")
    private String mongoId;

    @Field("fileUrlList")
    private List<String> fileUrlList;

    public FileUrlEntity() {
    }

    public FileUrlEntity(String mongoId, List<String> fileUrlList) {
        this.mongoId = mongoId;
        this.fileUrlList = fileUrlList;
    }
}
